package com.njuppt.springboot05mybatis.dao;

import com.njuppt.springboot05mybatis.bean.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @author Wizarder
 * @create 2022-06-12 21:35
 */
@Repository
@Mapper
public interface BookDao {
    @Select("select * from tbl_book where id = #{id}")
    public Book getBookById(@Param("id") Integer id);
}
